package exp;

public class expn {
			static void validate(int age) throws invalidage
		{ //int i;
			if(age>18)
			{
				throw new invalidage("not valid");
			
			}
		}
	        public static void main(String[] args){
	        	{
	        		//int i=Integer.parseInt(args[0]);
	        		//expn t=new expn();
	        		try{
	        			validate(20);
	        		}
	        		catch(Exception e)
	        		{
	        			System.out.println("printing..."+e);
	        		}
	        	}
	    }
	}


